Skip to content

Adding users pages and logic back to CP admin interface#787

Open
caitlinroach-nhs wants to merge 32 commits into
mainfrom
cp-admin-expanded-scope
Open

Adding users pages and logic back to CP admin interface#787
caitlinroach-nhs wants to merge 32 commits into
mainfrom
cp-admin-expanded-scope

Conversation

@caitlinroach-nhs

@caitlinroach-nhs caitlinroach-nhs commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

In this bit of work we are adding back the users section and finishing up any final designs for that. This includes:

  • Add users page to CP Admin interface
  • When users are deactivated from a pharmacy, remove that pharmacy from their user page list.
  • If the user is removed from the last pharmacy in their list, remove them from the users list
  • add success messages for deactivation actions
  • add ability to deactivate group admins (unless only one exists)
  • additional variations of welcome emails for group admins and users who are added to multiple pharmacies
  • add search for longer lists (more than 10 in a list)

@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 9, 2026 13:02 Inactive
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 9, 2026 14:22 Inactive
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 9, 2026 14:30 Inactive
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 9, 2026 14:40 Inactive
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 9, 2026 14:42 Inactive
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 9, 2026 14:49 Inactive
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 9, 2026 20:06 Inactive
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 10, 2026 08:07 Inactive
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 10, 2026 08:28 Inactive
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 10, 2026 08:32 Inactive
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 10, 2026 08:40 Inactive
Updated the welcome email to include multiple pharmacy locations.
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 10, 2026 09:35 Inactive
Changed to:
Add pharmacies or manage an existing pharmacy.
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 10, 2026 10:46 Inactive
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 10, 2026 12:25 Inactive
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 10, 2026 12:36 Inactive
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 10, 2026 12:58 Inactive
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 10, 2026 13:02 Inactive
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 10, 2026 13:22 Inactive
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 10, 2026 13:28 Inactive
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 10, 2026 14:28 Inactive
@caitlinroach-nhs caitlinroach-nhs marked this pull request as ready for review June 11, 2026 10:16
@caitlinroach-nhs

Copy link
Copy Markdown
Contributor Author

Forgot that we still need to discuss some of the deactivation messaging for this -- grabbed some time next Monday

@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 11, 2026 14:02 Inactive
<div class="app-email-preview">
{% include "user-admin/_welcome-email.html" %}
{% if (pharmacies | length) > 1 %}
{% include "emails/welcome-email-multiple-pharmacies.html" %}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need another 'if' in this section so that when you do Check and add a group admin this email is displayed:
welcome-email-group-admin.html

{% endfor %}
</ul>

<p>Their Okta account will remain active, so they can continue to access other services.</p>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will leave this line for now but want to run it past Ileri - it's what we currently say in the main service. But I'd be inclined to delete it as not sure it helps in any way.


<p>Once you deactivate {{ user.firstName }} {{ user.lastName }} ({{ user.email }}), they will not be able to sign in and use NHS Record a vaccination for this pharmacy group. They’ll receive an email to confirm their account has been deactivated.</p>

<p>Their Okta account will remain active, so they can continue to access other services.</p>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will leave this line for now but want to run it past Ileri - it's what we currently say in the main service. But I'd be inclined to delete it as not sure it helps in any way.


<p>Their Okta account will remain active, so they can continue to access other services.</p>

<p>You can reactivate their account anytime.</p>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending a decision about whether group admins can be reactivated or whether they need to be re-added, we may delete this.

<h1 class="nhsuk-heading-l">Deactivate {{ user.firstName }} {{ user.lastName }} from {{ pharmacy.name }} </h1>
<h1 class="nhsuk-heading-l">Deactivate {{ user.firstName }} {{ user.lastName }} from {{ pharmacy.name }} ({{ pharmacy.id }})</h1>

<p>Once you deactivate {{ user.firstName }} {{ user.lastName }} ({{ user.email}}), they cannot sign in and use NHS Record a vaccination at this pharmacy. They’ll receive an email to confirm their account has been deactivated.</p>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<p>Once you deactivate {{ user.firstName }} {{ user.lastName }} ({{ user.email}}), they cannot sign in and use NHS Record a vaccination at this pharmacy. They’ll receive an email to confirm their account has been deactivated.</p>
<p>Once you deactivate {{ user.firstName }} {{ user.lastName }} ({{ user.email}}), they will not be able to sign in and use NHS Record a vaccination at this pharmacy. They’ll get an email to confirm their account has been deactivated.</p>

@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 11, 2026 15:27 Inactive
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 11, 2026 15:30 Inactive
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 11, 2026 15:34 Inactive
Changed 'Add new user ...' to 'Add a new user'
@frankieroberto frankieroberto temporarily deployed to record-a-vac-cp-admin-e-fpfgji June 11, 2026 15:57 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants